//
//  GlobalGoBackScrollView.m
//  AMHexin
//
//  Created by lihy on 16/10/17.
//
//

#import "GlobalGoBackScrollView.h"

@implementation GlobalGoBackScrollView
#pragma mark - panGestureDelegate
- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer {
    UIWindow *window = [UIApplication sharedApplication].keyWindow;
    CGPoint point = [gestureRecognizer locationInView:window];
    if (point.x > Screen_width / 3) {
        return NO;
    } else {
        return YES;
    }
}

- (BOOL)scrollsToTop {
    return NO;
}
- (void)setContentOffset:(CGPoint)contentOffset {
    [super setContentOffset:contentOffset];
    
}
- (void)setContentOffset:(CGPoint)contentOffset animated:(BOOL)animated {
    [super setContentOffset:contentOffset animated:animated];
}
@end
